/**
 * @fileoverview bootstrap for tauge system
 * @author rudin harianto
 * @version 2011-12-01 0.0.1 alpha
 */
 
 
goog.provide('tauge');
goog.require('goog.dom');
goog.require('tauge.ui.Header');
goog.require('tauge.ui.LoginForm');
/**
 * @constructor
 */
tauge=function(){
}

/** 
 * tauge system bootstrap
 * @param {string=} opt_parameter startup parameter
 * @example tauge.start('app=payroll');
 */
tauge.start = function(opt_parameter) {
  var newDiv = goog.dom.createDom('div');
  goog.dom.appendChild(document.body, newDiv);
  
  this.header = new tauge.ui.Header();
  
  this.header.render(newDiv);
  
  
  var loginDiv = goog.dom.createDom('div',{'style':'position:absolute; top:100px'});
  goog.dom.appendChild(document.body,loginDiv);
  this.loginform = new tauge.ui.LoginForm();
  this.loginform.render(loginDiv);
  
  
  //try login with cookies
  //if logged
  // render appchooser
  //else
  // render login page
  
  //show header        
};

// Ensures the symbol will be visible after compiler renaming.
goog.exportSymbol('tauge.start', tauge.start);

